package bomberman.runable;

import bomberman.swing.BomJPanel;
import bomberman.util.Constants;

/**
 * 角色移动线程，一直开启，具体是否移动在move方法里控制
 * @author EX-FUHUICHAO001
 * 2016年9月22日17:49:49
 */
public class MyRunableMoveMan implements Runnable {

	public void run() {
		while(BomJPanel.man.isLive()){
			BomJPanel.man.move();
			try {
				Thread.sleep(Constants.MAN_SLEEP_TIME);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
		}
	}
	
}
